#ifndef BUFFER64_H
#define BUFFER64_H
#include<stdint.h>

typedef struct {
  volatile uint8_t rp;
  volatile uint8_t wp;
  volatile char buf[64];
} buffer64;

void buffer64_init(buffer64* buffer);
int buffer64_full(buffer64* buffer);
int buffer64_empty(buffer64* buffer);
void buffer64_insert(buffer64* buffer, char c);
char buffer64_remove(buffer64* buffer);

#endif
